cmake_minimum_required (VERSION 3.10)

project(example_cpp_httplib)

include_directories(dependencies)

find_package(glog QUIET)
if(glog_FOUND)
    message(STATUS "build ${PROJECT_NAME}")

    if(NOT glog_VERSION VERSION_LESS "0.7.0")
        add_definitions(-DGLOG_USE_GLOG_EXPORT)
    endif()

    aux_source_directory(. DIR_SOURCES)
    add_executable (${PROJECT_NAME} ${DIR_SOURCES})

    target_link_libraries(${PROJECT_NAME} pthread)
endif()